package main

import (
	"github.com/micro/cli/v2"
	"github.com/micro/go-micro/v2/util/log"
	"github.com/micro/go-micro/v2/web"
)

func main()  {
	s := web.NewService(web.Address(":8085"),web.Name("go.micro.web.Foo"),web.Flags(&cli.StringFlag{
		Name: "name",
		DefaultText:"g",
		Required:true,
	}), web.Action(func(c *cli.Context) {
		 name:= c.String("name")
		 log.Info("name = ",name)
	}))
	s.Init()
	//s.Run()
}

